<?php 
namespace app\model;
use think\Model;

class Instance extends Model
{	
	public static function getOTypeCn($key){
        $list = ['New'=>'新购','Renew'=>'续费','Upgrade'=>'升级','Downgrade'=>'降级','Refund'=>'退款','Adjust'=>'调账','Manual'=>'手工','Bill'=>'账单','Upgrade_Downgrade'=>'升级/降级'];
        return $list[$key];
    }

    public static function getOTypeList(){
        $list = ['New'=>'新购','Renew'=>'续费','Upgrade'=>'升级','Downgrade'=>'降级','Refund'=>'退款','Adjust'=>'调账','Manual'=>'手工','Bill'=>'账单','Upgrade_Downgrade'=>'升级/降级'];
        return $list;
    }

    public static function getSubscriptionTypeCn($key){
        $list = ['Subscription'=>'预付','PayAsYouGo'=>'后付'];
        return $list[$key];
    }

    public static function getSubscriptionTypeList(){
        $list = ['Subscription'=>'预付','PayAsYouGo'=>'后付'];
        return $list;
    }

    public static function getReneweCn($key){
        $list = [1=>'即将到期',2=>'近期过期'];
        return $list[$key];
    }

    public static function getReneweList(){
        $list = [1=>'即将到期',2=>'近期过期'];
        return $list;
    }


}


 ?>